cmake_minimum_required(VERSION 3.16)
project(v4l2loopback-demo)
set(common_libs 
       ${common_libs} 
	-lv4l2
	-ldrm
	-lopen3man
        -lrga
        -lpthread

)

include_directories(inc/
	/usr/include/rga/
	/usr/include/libdrm/
)

link_directories(lib/
)

add_executable(v4l2-cap v4l2-cap.cpp
		src/v4l2.cpp
		src/drm.cpp
)

add_executable(v4l2-out v4l2-out.cpp
		src/v4l2.cpp
		src/drm.cpp
)

target_link_libraries(v4l2-cap ${common_libs})
target_link_libraries(v4l2-out ${common_libs})
